<?php
class Permiso extends Modelo_base {

	var $table = 'permisos';

	var $has_one = array("rol");

    // Validaciones de campos
    var $validation = array(
        'controlador_funcion' => array(
            'label' => 'Permiso',
            'rules' => array('required', 'trim', 'max_length' => 60)
            ),
        'rol' => array(
            'label' => 'Rol',
            'rules' => array('required')
            )
    );

    // Optionally, don't include a constructor if you don't need one.
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }
}

/* End of file permiso.php */
/* Location: ./application/models/permiso.php */